<?php


    require_once("Utiles.php");


class Basededatos {

    public $conexion;
    public $utiles;

    public function conectar() {
        $dbhost = "localhost";
        $dbusuario = "root";
        $dbpassword = "";
        $db = "puntplanbd";
        $this->conexion = mysql_connect($dbhost, $dbusuario, $dbpassword);
        mysql_select_db($db, $this->conexion);
        $this->utiles = new Utiles();
        $_SESSION['unutil'] = "SI";
    }

    public function cerrar() {
        mysql_close($this->conexion);
    }

}

?>
